package proxy;

/**
 * @Author: Yangu
 * @Created time: 2021/1/4 14:28
 * @Description :
 */
public class UserServiceImpl extends TestFinal implements UserService  {

    @Override
    public String getUserName(String userName) {
        System.out.println(userName);
        return userName;
    }

    @Override
    public final String testFinal(String test) {
        System.out.println(test);
        return test;
    }

    @Override
    public void testExtends() {
        System.out.println("sun testExtends");
    }

    /**
     * final 方法子类无法继承
     */
//    @Override
//    public void testFinalExtends() {
//        System.out.println("sun testExtends");
//    }
}
